using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Aspnet_PersonalizationAllUsersManagerBase
    {
        public Aspnet_PersonalizationAllUsersManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity Insert(Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return (Aspnet_PersonalizationAllUsersEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity Update(Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.Update(obj);             
        }
 
 
        public Aspnet_PersonalizationAllUsersEntity Delete(Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity DeleteByLastUpdatedDate (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity DeleteByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity DeleteByPageSettings (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.DeleteByField(obj,"PageSettings");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PageSettings 
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity DeleteByPageSettings (string PageSettings )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PageSettings = PageSettings;  
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.DeleteByField(obj,"PageSettings");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity DeleteByPathId (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.DeleteByField(obj,"PathId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PathId 
        /// </summary>
        /// <returns>Aspnet_PersonalizationAllUsersEntity</returns>
        public Aspnet_PersonalizationAllUsersEntity DeleteByPathId (Guid PathId )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PathId = PathId;  
            return (Aspnet_PersonalizationAllUsersEntity)Adapter.DeleteByField(obj,"PathId");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Aspnet_PersonalizationAllUsersEntity Select(Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return (Aspnet_PersonalizationAllUsersEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Aspnet_PersonalizationAllUsersEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Aspnet_PersonalizationAllUsersEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectAllLST()
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_PersonalizationAllUsersEntity()),new Aspnet_PersonalizationAllUsersEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_PersonalizationAllUsersEntity(),option),new Aspnet_PersonalizationAllUsersEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByLastUpdatedDateLST (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByLastUpdatedDateLST (Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LastUpdatedDate",option),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate",option),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"PageSettings");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PageSettings",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPageSettingsLST (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PageSettings"),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPageSettingsLST (Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PageSettings",option),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (string PageSettings )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PageSettings = PageSettings;  
            return Adapter.SelectByField(obj,"PageSettings");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPageSettings (string PageSettings, SelectOptions option)
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PageSettings = PageSettings;  
            return Adapter.SelectByField(obj,"PageSettings",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPageSettingsLST (string PageSettings )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PageSettings = PageSettings;  
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PageSettings"),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PageSettings duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPageSettingsLST (string PageSettings, SelectOptions option)
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PageSettings = PageSettings;  
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PageSettings",option),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"PathId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PathId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPathIdLST (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PathId"),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPathIdLST (Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PathId",option),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Guid PathId )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PathId = PathId;  
            return Adapter.SelectByField(obj,"PathId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPathId (Guid PathId, SelectOptions option)
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PathId = PathId;  
            return Adapter.SelectByField(obj,"PathId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPathIdLST (Guid PathId )
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PathId = PathId;  
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PathId"),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PathId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectByPathIdLST (Guid PathId, SelectOptions option)
        { 
            Aspnet_PersonalizationAllUsersEntity obj = new Aspnet_PersonalizationAllUsersEntity();
            obj.PathId = PathId;  
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PathId",option),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectWithConditionLST (Aspnet_PersonalizationAllUsersEntity obj)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Aspnet_PersonalizationAllUsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_PersonalizationAllUsersEntity></returns>
        public List<Aspnet_PersonalizationAllUsersEntity> SelectWithConditionLST (Aspnet_PersonalizationAllUsersEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_PersonalizationAllUsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Aspnet_PersonalizationAllUsersEntity());
        }

}
}
